package com.yundasys.lab12java.java8;

/**
 * @PACKAGE_NAME: com.yundasys.lab12java.java8
 * @NAME: PizzaDeliverySystemConfiguration
 * @USER: jiangta
 * @DATE: 2021/10/15
 * @TIME: 10:09 上午
 * @PROJECT_NAME: springboot-labs
 */
public enum  PizzaDeliverySystemConfiguration {

    INSTANCE;
    PizzaDeliverySystemConfiguration() {
        // Initialization configuration which involves
        // overriding defaults like delivery strategy
    }

    private PizzaDeliveryStrategy deliveryStrategy = PizzaDeliveryStrategy.NORMAL;

    public static PizzaDeliverySystemConfiguration getInstance() {
        return INSTANCE;
    }

    public PizzaDeliveryStrategy getDeliveryStrategy() {
        return deliveryStrategy;
    }
}
